package com.one.group.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * {@code @Create:}  2025-10-04  19 : 59
 * {@code @Author:} Cherry
 * {@code @ToUser:} 凡是发生,皆有利于我。
 * ------------------------------------
 * {@code @note:}
 */

@SuppressWarnings({"all"})
@Table("sp_maintenance_plan")
@Data
@Builder
public class MaintenancePlan {
    @Id(keyType = KeyType.Auto)
    private Long id;

    @Column(value = "tenant_id", tenantId = true)
    private Long tenantId;

    private Long equipmentId;

    @Column("maintenance_project")
    private String maintenanceProject;

    @Column("start_time")
    private Date startTime;

    @Column("end_time")
    private Date endTime;

    @Column("estimated_cost")
    private BigDecimal estimatedCost;

    @Column("maintenance_cycle")
    private String maintenanceCycle;

    @Column("maintenance_level")
    private String maintenanceLevel;

    @Column(value = "is_deleted", isLogicDelete = true)
    private Integer isDeleted;

    private int status;

    @Column("responsible_person")
    private String responsiblePerson;

    @Column("create_time")
    private Date createTime;

    @Column("update_time")
    private Date updateTime;
}
